import {FC, ReactElement, useContext} from "react";
import {inject, observer} from "mobx-react";
import {homeContext} from "../../context";
import HomeLeftContent from "./component/HomeLeftContent/HomeLeftContent";
import HomeRightContent from "./component/HomeRightContent/HomeRightContent";
import "./Home_style.less";
const Home:FC<ReactElement>=()=>{
    const homeContextValue=useContext(homeContext)
    return (
        <homeContext.Provider value={homeContextValue}>
            <HomeLeftContent className="home_left-box" />
            <HomeRightContent className="home_right-box" />
        </homeContext.Provider>
    );
}
export default inject("HomeStore")(observer(Home));
